package day16_Runnable.demo07_ExecutorService;

//线程池:
//	写法:创建多个线程
//		ExecutorService threadPool = Executors.newFixedThreadPool(8);
//	启动线程
//		threadPool.submit(Runnable对象)
//	关闭线程池
//		threadPool.shutdown();

public class Csw implements Runnable{
    @Override
    public void run() {
        for (int i =1; i <=100; i++) {
            System.out.println(Thread.currentThread().getName()+":"+i);
        }
    }
}
